home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Sound / SoundApp / SoundApp.make < prev    next >
Encoding:
Text File  |  1997-02-18  |  3.0 KB  |  88 lines  |  [TEXT/MPS ]

  1. #------------------------------------------------------------------------------
  2. # Apple Macintosh Developer Technical Support
  3. #
  4. # MultiFinder-Aware SoundApp Application
  5. #
  6. # SoundApp
  7. #
  8. # SoundApp.make    -    Make Source
  9. #
  10. # Copyright © 1989-1990 Apple Computer, Inc.
  11. # All rights reserved.
  12. #
  13. #Versions:
  14. #        1.03                January, 1990
  15. #        1.04                Sept, 1990
  16. #        1.2                    August, 1994        translated to C
  17. #
  18. #Components:
  19. #        SoundApp.c            January, 1990        MPW C source code
  20. #        SoundUnit.c            January, 1990        MPW C source code
  21. #        SoundUnit.h            January, 1990        MPW C source code
  22. #        SoundApp.r            January, 1990        MPW Rez source code
  23. #        SoundAppSnds.r        January, 1990        MPW Rez source code
  24. #        SoundApp.make        January, 1990        MPW build script
  25. #
  26. #Formatting was done with FONT = Courier or Monaco, SIZE = 10, TABS = 4
  27. #
  28. # SoundApp is a sample application source code for demonstrating
  29. # the Sound Manager.  It requires the use of the SoundUnit to handle
  30. # all of the sound routines.  This portion of the source code handles the
  31. # application’s management of memory, errors, user interface, etc..
  32. #
  33. # Jim Reekes E.O., Macintosh Developer Technical Support
  34. # Sunday, August 7, 1994 7:06:41 PM
  35. #
  36. #------------------------------------------------------------------------------
  37.  
  38. COptions        = -d SystemSevenOrLater=1 -r -opt full -sym off
  39. RezOptions        = -d SystemSevenOrLater=1 -append
  40. LinkOptions        = -sym off
  41.  
  42. #------------------------------------------------------------------------------
  43. # These are the objects that we want to link with. If any one of these
  44. # changes, then we invoke the Link command.
  45. #------------------------------------------------------------------------------
  46.  
  47. SoundAppObs        =    SoundUnit.c.o                ∂
  48.                     SoundApp.c.o                 ∂
  49.                     "{Libraries}"Interface.o    ∂
  50.                     "{Libraries}"Runtime.o        ∂
  51.                     "{Libraries}"ToolLibs.o        ∂
  52.                     "{CLibraries}"CSANELib.o
  53.  
  54. #------------------------------------------------------------------------------
  55. # Dependencies for the individual components. These will invoke the
  56. # default build rules listed in Chapter 9 of the MPW 3.0 manual.
  57. #------------------------------------------------------------------------------
  58.  
  59. SoundApp.c.o        ƒ    SoundApp.c                ∂
  60.                         SoundUnit.h                ∂
  61.                         SoundApp.make
  62.  
  63. SoundUnit.c.o        ƒ    SoundUnit.c                ∂
  64.                         SoundUnit.h                ∂
  65.                         SoundApp.make
  66.  
  67. #------------------------------------------------------------------------------
  68. # Build rule that links our application together. If any of our objects
  69. # changes, or this makefile changes, then we relink.
  70. #------------------------------------------------------------------------------
  71.  
  72. SoundApp            ƒƒ    {SoundAppObs}            ∂
  73.                         SoundApp.make
  74.     Link {LinkOptions} -o {Targ} {SoundAppObs}
  75.     SetFile {Targ} -t APPL -c 'SAPP' -a B
  76.  
  77. #------------------------------------------------------------------------------
  78. # Build rule that creates our resources and adds them to the application
  79. #------------------------------------------------------------------------------
  80.  
  81. SoundApp            ƒƒ    SoundAppSnds.r            ∂
  82.                         SoundApp.make
  83.     Rez {RezOptions} -o {Targ} SoundAppSnds.r
  84.  
  85. SoundApp            ƒƒ    SoundApp.r                ∂
  86.                         SoundApp.make
  87.     Rez {RezOptions} -o {Targ} SoundApp.r
  88.